package com.jiamao.goplay.ui.user.vm;

import android.os.Bundle;
import android.view.View;

import com.jiamao.goplay.bean.PlaceWantGoItem;
import com.jiamao.goplay.ui.discover.AddrDetailFragment;

import java.util.List;

import androidx.annotation.NonNull;
import androidx.databinding.ObservableBoolean;
import androidx.databinding.ObservableField;
import androidx.databinding.ObservableInt;
import me.goldze.mvvmhabit.base.BaseViewModel;
import me.goldze.mvvmhabit.base.MultiItemViewModel;
import me.goldze.mvvmhabit.binding.command.BindingAction;
import me.goldze.mvvmhabit.binding.command.BindingCommand;
import me.goldze.mvvmhabit.utils.KLog;

public class UserUpdateAHItemVM extends MultiItemViewModel {

    public ObservableField<String> title = new ObservableField<>("");

    public ObservableBoolean isSelect = new ObservableBoolean(false);


    public UserUpdateAHItemVM(@NonNull BaseViewModel viewModel,  String data) {
        super(viewModel);

        title.set(data);

    }

    //条目的点击事件
    public BindingCommand itemClick = new BindingCommand(new BindingAction() {
        @Override
        public void call() {
           // isSelect.set(true);
            ((UpdateAHVM)viewModel).updateUI(UserUpdateAHItemVM.this);
        }
    });

    public void update(){
        ((UpdateAHVM)viewModel).updateUI(UserUpdateAHItemVM.this);
    }




}
